package com.hxzy.shop.fallback.order;

import com.github.pagehelper.PageInfo;
import com.hxzy.shop.dto.order.req.OrderCountsReq;
import com.hxzy.shop.dto.order.req.OrderDetailReq;
import com.hxzy.shop.dto.order.req.OrderManageReq;
import com.hxzy.shop.dto.order.resp.OrderCountsResp;
import com.hxzy.shop.dto.order.resp.OrderDetailResp;
import com.hxzy.shop.dto.order.resp.OrderManageListResp;
import com.hxzy.shop.dto.order.resp.StoreResp;
import com.hxzy.shop.feign.order.OrderFeign;
import com.hxzy.shop.vo.Result;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class OrderFallback implements OrderFeign {

    @Override
    public Result<PageInfo<OrderManageListResp>> getOrderManageList(OrderManageReq orderManageReq) {
        return Result.demotion();
    }

    @Override
    public Result<OrderDetailResp> getOrderDetail(OrderDetailReq orderDetailReq) {
        return null;
    }

//    @Override
//    public Result<OrderDetailResp> getOrderDetail(OrderDetailReq orderDetailReq) {
//        return Result.demotion();
//    }

    @Override
    public Result<OrderCountsResp> orderCountS(OrderCountsReq orderCountsReq) {
        return null;
    }

    @Override
    public Result<List<StoreResp>> getStoreList() {
        return Result.demotion();
    }
}
